<table width="560" border="0" cellspacing="0" cellpadding="0" style="border:1px solid #333">
  <tr>
    <td colspan="6" class="tieude" align="center" height="40">DANH SÁCH KHÁCH HÀNG THÂN THIẾT</td>
  </tr>
  <tr bgcolor="#FFCC99" align="center" height="30" style="font-weight:bold">
    <td width="50" height="40" style="border-right:1px solid #666">STT</td>
    <td width="150" style="border-right:1px solid #666">Loại hình<br />
kinh doanh</td>
    <td width="100" style="border-right:1px solid #666">Tên</td>
    <td width="360">Địa chỉ</td>
  </tr>
  <?php
  	$query=mysql_query("select * from khachhangthanthiet order by id_khtt ASC");
	while($r=mysql_fetch_array($query))
	{
		$id_khtt=$r["id_khtt"];	$loaihinhkd=$r["loaihinhkd"];
		$ten=$r["ten"];$diadiem=$r["diadiem"];
  ?>	
  <tr bgcolor="#FFFFCC" align="center" height="30" style="font-weight:bold">
    <td width="50" height="30" style="border-right:1px solid #666; border-bottom:1px dotted #000; ; border-top:1px dotted #FFF"><?php echo $id_khtt; ?></td>
    <td width="150" style="border-right:1px solid #666; border-bottom:1px dotted #000"><?php echo $loaihinhkd; ?><br />
</td>
    <td width="100" style="border-right:1px solid #666; border-bottom:1px dotted #000"><?php echo $ten; ?></td>
    <td width="360" style="border-bottom:1px dotted #000"><?php echo $diadiem; ?></td>
  </tr>
  <?php
	}
  ?>
</table>